package com.shenzhen.horselive.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.shenzhen.horselive.R;
import com.shenzhen.horselive.base.AppBarActivity;
import com.shenzhen.horselive.databinding.ActivityEmptyBinding;

public class EmptyActivity extends AppBarActivity {
    ActivityEmptyBinding  binding;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityEmptyBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        setStyleDark();
        initView();
    }

    private void initView() {
        setTitle(getIntent().getStringExtra("title"));
    }


    public static void start(Context context,String  title) {
        Intent starter = new Intent(context, EmptyActivity.class);
        starter.putExtra("title",title);
        context.startActivity(starter);
    }

}